{% extends "base_template" %}
{% block import %}
{{ super() }}
import integration_aws_billing_by_instance__main as main
{% endblock %}

{% block account %}
{{ super() }}
{% endblock %}

{% block collect_configs %}
collector_configs = {
    {% if account_config.area == "cn" %}
    'area': 'CN'
    {% else %}
    'area': 'INTL'
    {% endif %}
}
{% endblock %}

{% block filters%}
{% endblock %}

{% block run %}
@DFF.API('AWS-Instance-Billing Collection', timeout=300, fixed_crontab='5 * * * *')
def run():
    Runner(main.DataCollector(account, collector_configs)).run()

{% endblock %}
